import request from '@/utils/request';

// 全服广播管理列表
export function listData(query) {
  return request({
    url: `/room/broadcasts`,
    method: 'get',
    params: query
  });
}

// 添加全服广播
export function addBroadcasts(query) {
    return request({
      url: `/room/broadcasts`,
      method: 'post',
      data: query
    });
}

// 编辑全服广播
export function editBroadcasts(query,id) {
    return request({
      url: `/room/broadcasts/${id}`,
      method: 'put',
      data: query
    });
}

// 删除
export function delBroadcasts(query) {
    return request({
      url: `/room/broadcasts`,
      method: 'delete',
      data: query
    });
}